package org.slsale.service.goodspackaffiliated;

import java.util.List;

import javax.annotation.Resource;

import org.slsale.dao.goodspackaffiliated.GoodsPackAffiliatedMapper;
import org.slsale.pojo.user.GoodsPackAffiliated;
import org.springframework.stereotype.Service;

@Service 
public class GoodsPackAffiliatedServiceImpl implements GoodsPackAffiliatedService {
	
	@Resource 
	private GoodsPackAffiliatedMapper goodsPackAffiliatedMapper;

	@Override
	public int deleteGoodsPackAffiliated(GoodsPackAffiliated goodsPackAffiliated) {
		// TODO Auto-generated method stub
		return goodsPackAffiliatedMapper.deleteGoodsPackAffiliated(goodsPackAffiliated);
	}

	@Override
	public int addGoodsPackAffiliated(GoodsPackAffiliated goodsPackAffiliated) throws Exception {
		// TODO Auto-generated method stub
		return goodsPackAffiliatedMapper.addGoodsPackAffiliated(goodsPackAffiliated);
	}

	@Override
	public List<GoodsPackAffiliated> getGoodsPackAffiliatedListById(GoodsPackAffiliated goodsPackAffiliated)
			throws Exception {
		// TODO Auto-generated method stub
		return goodsPackAffiliatedMapper.getGoodsPackAffiliatedListById(goodsPackAffiliated);
	}
	
}
